import { stringify } from 'qs';
import request from '@/utils/request';

//查询
export async function getUserList (params) {
  let url = '/tourism/api/v1/user/pageList'
  return request(url, {
    method: 'POST',
    body: {
      ...params
    },
  });
}

//新增
export async function createUsers (params) {
  let url = '/tourism/api/v1/user/inserte'
  return request(url, {
    method: 'POST',
    body: {
      ...params
    },
  });
}

//删除
export async function deleteReq (params) {
  let url = `/tourism/api/v1/user/delete`
  return request(url, {
    method: 'POST',
    body:{
      ...params,
    }
  });
}

//编辑
export async function editdUser (params) {

  let url = `/tourism/api/v1/user/update`

  return request(url, {
    method: 'POST',
    body:
      params
  });
}



//用户详情查询
export async function detailsSearch (params) {
  let url = `/tourism/api/v1/user/${params.user_id}`;
  return request(url, {
    method: 'POST',
    body:{

    }
  });
}

